Repository navigation
feat(cli): show the record key in aimdb record list - #501
Merged
Merged
Conversation
Add a Key column as the first column of the record list table, so the list shows what to pass to aimdb record get / set and aimdb watch. The Name column (the Rust type name) stays beside it. Closes #455 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGkDJAA2rC3Yn2KLShtuvP
Restore the line break between the two bullets in the Input docs, so rustdoc renders them as separate list items, and drop the empty test module left in typed_api/link_inbound.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGkDJAA2rC3Yn2KLShtuvP
- Rename TypedRecord::set_consumers_profiling to set_consumer_profiling; it attaches profiling to a single consumer. - Move typed_record's inline tests into typed_record/tests.rs, as typed_api/tests/ and session/client/tests.rs already do. - Replace the #[allow(unused_mut)] in the outbound-link consumer factory with a link_consumer helper that has an observability variant and a no-op variant. - Narrow ConsumerServiceFn / ProducerServiceFn from pub(super) to pub(in crate::typed_record). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGkDJAA2rC3Yn2KLShtuvP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
aimdb record listnow shows aKeycolumn first, so the table shows the key to pass toaimdb record get/setandaimdb watch. TheNamecolumn (the Rust type name) stays next to it, as the issue asks.tools/aimdb-cli/src/output/table.rs: adds theKeyheader andrecord.record_keyto each row, and updates the two table snapshot tests.tools/aimdb-cli/README.md: updates the example output and says whatKeyandNamemean.tools/aimdb-cli/CHANGELOG.md: adds an Unreleased entry.JSON output doesn't change, because
RecordMetadataalready serializesrecord_key.Follow-up fixes after #500
This PR also tidies up after the
typed_api/typed_recordsplit (#500). I mergedmainto get #500's files. None of these changes behaviour.Fixes:
typed_api/mod.rs: two bullets in theInputdocs had been joined onto one line. I restored the line break, and rustdoc now renders them as two list items.typed_api/link_inbound.rs: removes the leftover empty#[cfg(test)] mod tests {}.Cleanups:
typed_record/record.rs: renamesset_consumers_profilingtoset_consumer_profiling, since it handles a single consumer.typed_record/mod.rs→typed_record/tests.rs: moves the inline tests into their own file, astyped_api/tests/andsession/client/tests.rsalready do. The moved code changes only where rustfmt reflowed it.typed_api/registrar.rs: removes#[allow(unused_mut)]from the outbound-link consumer factory. Alink_consumerhelper with anobservabilityvariant and a no-op variant replaces it. Withoutobservability, aNoLinkMetricsmarker takes the place of the stage metrics, which avoids a clippylet_unit_valuewarning.typed_record/mod.rs: narrowsConsumerServiceFn/ProducerServiceFnfrompub(super)topub(in crate::typed_record).Related Issue
Checklist
make check). I didn't run the fullmake check. I ran these instead, and all passed:cargo fmt --all -- --checkcargo clippy -p aimdb-core --all-targets --no-default-features --features …with-D warnings, for the feature setsalloc,alloc,observability,alloc,remoteandstd,tracing,observabilitycargo test -p aimdb-core --no-default-features --features …forstd,tracing,observability(320 lib tests),alloc(136) andalloc,remote(163)cargo test -p aimdb-data-contracts; the trybuild snapshots didn't need regeneratingcargo test -p aimdb-cli, plus clippy for that cratecargo doc -p aimdb-core --no-deps; theInputbullet list renders correctly🤖 Generated with Claude Code
https://claude.ai/code/session_01WGkDJAA2rC3Yn2KLShtuvP